package com.dcw.lixb.designmode.proxy;

/**
 * @author lixiaobin
 * @date 2020-07-23 16:00:38
 * @desc 描述信息
 */
public class ProxyImage implements Image {
    private String fileName;
    private RealImage mRealImage;

    public ProxyImage(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public void display() {
        if (null==mRealImage) {
            mRealImage = new RealImage(fileName);
        }
        mRealImage.display();
    }
}
